package file.day9_25;

public class LambdaDemo2 {

    private void start(){

//        Handler h = new Handler();
//        Thread t = new Thread(h);


        Thread t = new Thread(){
                public void run(){
                    System.out.println("on");
                }
        };

//        Thread t = new Thread(()-> System.out.println("on"));


        t.start();
    }

    class Handler implements Runnable{
        public void run(){
            System.out.println("good");
        }
    }

    public static void main(String[] args) {
        LambdaDemo2 d = new LambdaDemo2();
        d.start();
    }
}
